﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Topro.Application.Interface
{
    using Topro.Entity;
    using Topro.Entity.Query;
    using Topro.Entity.Request.Setting;
    using Topro.Entity.Response.Setting;

    public interface SettingService
    {
        /// <summary>
        /// 获取
        /// </summary>
        /// <param name="id">编号</param>
        /// <returns></returns>
        public SettingResponse Get(int id);

        /// <summary>
        /// 获取
        /// </summary>
        /// <param name="type">编号</param>
        /// <returns></returns>
        public List<SettingResponse> GetByType(int type);

        /// <summary>
        /// 保存、修改
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public JResult SaveIQS(SaveSettingRequest request);

        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public PagedList<SettingQueryResponse> GetPager(SettingQuery query);

    }
}
